package cn.weiyan.dtx.seatademo.bank1.spring;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author misterWei
 * @create 2020年02月14号:17点45分
 * @mailbox mynameisweiyan@gmail.com
 */
@FeignClient(value = "seata-demo-bank2",fallback = Bank2ClientFallback.class)
public interface Bank2Client {

    @GetMapping("/bank2/transfer")
    public String transfer(@RequestParam("amount") Double amount);
}
